package com.itany.cms.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserParam {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String loginName;
    private String nickname;
    private String password;
    private String role;
    private String email;
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime loginDate;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createDate;
    private LocalDateTime startCreateDate;
    private LocalDateTime endCreateDate;
    private LocalDateTime startLoginDate;
    private LocalDateTime endLoginDate;
    private Integer status;

    public UserParam(String loginName, String nickname, String password, String role, String email, LocalDateTime loginDate, LocalDateTime createDate, LocalDateTime startCreateDate, LocalDateTime endCreateDate, LocalDateTime startLoginDate, LocalDateTime endLoginDate, Integer status) {
        this.loginName = loginName;
        this.nickname = nickname;
        this.password = password;
        this.role = role;
        this.email = email;
        this.loginDate = loginDate;
        this.createDate = createDate;
        this.startCreateDate = startCreateDate;
        this.endCreateDate = endCreateDate;
        this.startLoginDate = startLoginDate;
        this.endLoginDate = endLoginDate;
        this.status = status;
    }
}
